package com.dykj.fireFighting.api.fire.contractMessage.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dykj.fireFighting.common.core.dto.CommonDto;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/**
 * @Description 维保合同表
 * @Author JacksonTu
 * @Date  2021-07-27 15:01:44
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "维保合同表")
@TableName("contract_message")
public class ContractMessageDto extends CommonDto {
	private static final long serialVersionUID = 1L;

	/**
	 * PK
	 */
    @ApiModelProperty(value = "PK")
	@TableId
	private String id;

    private String name;
	/**
	 * 合同编号
	 */
    @ApiModelProperty(value = "合同编号")
	@TableField("contract_number")
	private String contractNumber;
	/**
	 * 创建时间
	 */
    @ApiModelProperty(value = "创建时间")
	@TableField("create_date")
	private Date createDate;
	/**
	 * 创建人
	 */
    @ApiModelProperty(value = "创建人")
	@TableField("create_by")
	private String createBy;
	/**
	 * 删除标志
	 */
    @ApiModelProperty(value = "删除标志")
	@TableField("is_del")
	private String isDel;
	/**
	 * 备注
	 */
    @ApiModelProperty(value = "备注")
	private String remark;
	/**
	 * 甲方联系人
	 */
    @ApiModelProperty(value = "甲方联系人")
	@TableField("party_a")
	private String partyA;
	/**
	 * 乙方联系人
	 */
    @ApiModelProperty(value = "乙方联系人")
	@TableField("party_b")
	private String partyB;
	/**
	 * 甲方联系方式
	 */
    @ApiModelProperty(value = "甲方联系方式")
	@TableField("tel_a")
	private String telA;
	/**
	 * 乙方联系方式
	 */
    @ApiModelProperty(value = "乙方联系方式")
	@TableField("tel_b")
	private String telB;
	/**
	 * 交易金额
	 */
    @ApiModelProperty(value = "交易金额")
	@TableField("transaction_amount")
	private String transactionAmount;
	/**
	 * 付款方式
	 */
    @ApiModelProperty(value = "付款方式")
	@TableField("payment_method")
	private String paymentMethod;
	/**
	 * 生效日期
	 */
    @ApiModelProperty(value = "生效日期")
	@TableField("effective_date")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private String effectiveDate;
	/**
	 * 失效日期
	 */
    @ApiModelProperty(value = "失效日期")
	@TableField("expiration_date")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private String expirationDate;
	/**
	 * 注意事项
	 */
    @ApiModelProperty(value = "注意事项")
	private String precautions;
	/**
	 * 社会单位主键
	 */
    @ApiModelProperty(value = "社会单位主键")
	@TableField("social_units_code")
	private String socialUnitsCode;
	/**
	 * 维保单位主键
	 */
    @ApiModelProperty(value = "维保单位主键")
	@TableField("weibao_units_code")
	private String weibaoUnitsCode;
	/**
	 * 合同图片
	 */
    @ApiModelProperty(value = "合同图片")
	@TableField("contract_photo")
	private String contractPhoto;
	/**
	 * 分期付款时间
	 */
    @ApiModelProperty(value = "分期付款时间-多个")
	private String stagesWarnDate;
	/**
	 * 签约日期
	 */
    @ApiModelProperty(value = "签约日期")
	@TableField("sign_date")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private String signDate;
	private String signPeople;


    private String contractDate;
	private Integer expireWarnDay;
	private String sysType;
	private int invoiceType;
	private String invoiceTitle;
	private String invoiceTaxCode;
	private String invoiceAddressTel;
	private String invoiceBankAccount;


}
